/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */

/*  Duda I/O
 *  --------
 *  Copyright (C) 2012-2016, Eduardo Silva P. <eduardo@monkey.io>
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

#include "duda_api.h"

#ifndef MK_DUDA_DATA_H
#define MK_DUDA_DATA_H

/* Object API */

struct duda_api_data {
    #define set_path(dir) _set_path(self, dir)
    int (*_set_path) (struct web_service *, const char *);

    #define get_path() _get_path(self)
    const char *(*_get_path) (struct web_service *);

    #define locate(f)      _locate(dr, f)
    char *(*_locate) (duda_request_t *, const char *);
};

struct duda_api_data *duda_data_object();

#endif
